package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.po.CategoryPO;
import lombok.Data;

import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/5 17:33
 */
@Data
public class CategoryListVO {
    Integer id;
    String  name;
    String keywords;
    String desc;
    String iconUrl;
    String picUrl;
    String level;

    public static CategoryListVO setCategoryListVO(CategoryPO categoryPO){
        CategoryListVO vo = new CategoryListVO();
        vo.setId(categoryPO.getId());
        vo.setName(categoryPO.getName());
        vo.setKeywords(categoryPO.getKeywords());
        vo.setDesc(categoryPO.getDesc());
        vo.setIconUrl(categoryPO.getIconUrl());
        vo.setPicUrl(categoryPO.getPicUrl());
        vo.setLevel(categoryPO.getLevel());
        return vo;
    }
}
